Skip to content

Conversation

nikodemus
Copy link
Contributor

@nikodemus nikodemus commented Apr 15, 2018

Given this,

WORKSPACE:

http_archive(
    name = "docopt_cpp",
    url = "http://github.com/nikodemus/docopt.cpp/zipball/bazel-support/",
    sha256 = "a7f191ae531994069680b4fd20a6d310246dc980c18db35f92a31bbfde45bed6",
    strip_prefix = "nikodemus-docopt.cpp-47c7302",
    type = "zip",
)

BUILD:

cc_binary(
    name = "example",
    srcs = ["example.cpp"],
    deps = ["@docopt_cpp//:docopt"],
)

type things will just work to use #include "docopt.cpp/docopt.h" in example.cpp.

(Except of course with the upstream repo instead of my fork.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant